{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\nvar specialProperty = \"exact-prop: \\u200B\";\nexport default function exactProp(propTypes) {\n  if (process.env.NODE_ENV === 'production') {\n    return propTypes;\n  }\n  return _extends({}, propTypes, _defineProperty({}, specialProperty, function (props) {\n    var unsupportedProps = Object.keys(props).filter(function (prop) {\n      return !propTypes.hasOwnProperty(prop);\n    });\n    if (unsupportedProps.length > 0) {\n      return new Error(\"The following props are not supported: \".concat(unsupportedProps.map(function (prop) {\n        return \"`\".concat(prop, \"`\");\n      }).join(', '), \". Please remove them.\"));\n    }\n    return null;\n  }));\n}","map":{"version":3,"names":["_extends","specialProperty","exactProp","propTypes","process","env","NODE_ENV","props","unsupportedProps","Object","keys","filter","prop","hasOwnProperty","length","Error","map","join"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@mui/utils/esm/exactProp.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n  if (process.env.NODE_ENV === 'production') {\n    return propTypes;\n  }\n\n  return _extends({}, propTypes, {\n    [specialProperty]: props => {\n      const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n\n      if (unsupportedProps.length > 0) {\n        return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n      }\n\n      return null;\n    }\n  });\n}"],"mappings":";AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD;AACA;AACA;AACA,IAAMC,eAAe,GAAG,oBAAoB;AAC5C,eAAe,SAASC,SAAS,CAACC,SAAS,EAAE;EAC3C,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzC,OAAOH,SAAS;EAClB;EAEA,OAAOH,QAAQ,CAAC,CAAC,CAAC,EAAEG,SAAS,sBAC1BF,eAAe,EAAG,UAAAM,KAAK,EAAI;IAC1B,IAAMC,gBAAgB,GAAGC,MAAM,CAACC,IAAI,CAACH,KAAK,CAAC,CAACI,MAAM,CAAC,UAAAC,IAAI;MAAA,OAAI,CAACT,SAAS,CAACU,cAAc,CAACD,IAAI,CAAC;IAAA,EAAC;IAE3F,IAAIJ,gBAAgB,CAACM,MAAM,GAAG,CAAC,EAAE;MAC/B,OAAO,IAAIC,KAAK,kDAA2CP,gBAAgB,CAACQ,GAAG,CAAC,UAAAJ,IAAI;QAAA,kBAASA,IAAI;MAAA,CAAI,CAAC,CAACK,IAAI,CAAC,IAAI,CAAC,2BAAwB;IAC3I;IAEA,OAAO,IAAI;EACb,CAAC,EACD;AACJ"},"metadata":{},"sourceType":"module"}